<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    正在测试localStorage的使用
</body>
<script>

    // console.log(localStorage);
    // console.log(window.localStorage);
    // console.log(window.localStorage === localStorage);

    // console.log(localStorage.length);

    // 对象操作：增改查删
    // localStorage.name = "admin";
    // localStorage.name = "root";
    // console.log(localStorage.name)
    // delete localStorage.name;


    // localStorage.setItem("age",18)
    // localStorage.setItem("age",20)
    // console.log(localStorage.getItem("age"))
    // localStorage.removeItem("age")
    // localStorage.clear();

</script>
</html>